home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Tele
/
C
/
CutSize1.0a.cpt
/
CutSize Docs
< prev
next >
Wrap
Text File
|
1989-02-04
|
4KB
|
110 lines
CutSize 1.0a
by Mark Kupferman
What is it?
-----------
Cutsize is a short program that allows you to maintain a maximum number of
messages to be allowed in each of your message sections. If the program is
run after Tabby Delivermail, it will tell you how many new messages were
added to each section during the mail hour.
What should be in this archive?
-------------------------------
Cutsize 1.0a The compiled program
Cutsize Config The configuration file
Cutsize.pas The Turbo Pascal Source
Cutsize.rsrc The resource file
How does it work?
-----------------
Let's say you have 3 message sections: EchoMac, MacDev, and Tabby. You have
configured Cutsize to allow the Echomac message base to allow 70 messages,
the MacDev base to allow 50 messages, and the Tabby base to allow 60
messages. When Cutsize runs, it will count how many messages are in each
of these sections. Let's say if finds 100 active messages in the Echomac
base, 47 in the MacDev base, and 65 in the Tabby base. After it counts, it
will print out a report of how many new messages were put into each of the
section. Then, it will scan the message base again. This time, it will delete
the oldest messages in each base until there are only the allowed number
in each base. For example, it would delete the first 30 messages in the
Echomac base, nothing in the MacDev base, and 5 messages in the Tabby
base. It will then create a list of how many messages it deleted in each
base.
How do I configure CutSize?
---------------------------
All of the things Cutsize needs to know are stored in a text file called
'CutSize Config'. Here is what each line represents:
Path to MESSAGES File
Path to MSGHDR file
Path to News HiMark file
Path to report
Path to Application to run next
Following that are a list of 255 numbers. These are the maximum number of
messages to allow in each section. The first number is for message section
number 1, and the next is 2, all the way to 255. I am sorry it is a pain to
figure out which is which, but this is a cheap program.
Stick Cutsize and CutSize Config into your RRH folder. If you like, you
can put Cutsize into an event so that it replaces the 'Red Ryder Host'
(Cutsize will automatically branch to Red Ryder Host). It should be noted
that this program does not deal with the LaunchNext file, so it should
be the last event (or something like that).
For example:
Tabby SendNews,Tabby SendMail,TabbyNet,ArcMail Extract,
TabbyNet DeliverMail,CutSize
Would work. If someone wants to modify the program to deal with the
LaunchNext file and the scheduler, feel free. The source code for this
program is included.
Of course, it is also possible to run this program stand alone. In the
field for the program to launch next, direct it to the Finder. Or, you
could even have it run as a CMD#50. Use your imagination
What does the report tell me?
-----------------------------
The report is fairly obvious, but there are a couple of fields that could
probably be explained. 'Dead Messages' is the number of deleted messages
that are sitting in your message base. By the way, it should be pointed
out that once this program runs, the message base still needs to be
backed up using MsgEdit.
'Total # of messages' is the total number of messages in your message file,
including dead messages.
At the end of the report is a list of all of the message section that you
have configured along with how many messages are in each section.
How much does the program cost?
-------------------------------
The program is free. You can do what you like with it. It did not take me
very long to write, and it does not offer an incredable number of
features. It is simply something I had to write because my message base
was getting out of hand.
The source code is included. You are free to modify it any way you like.
If you want to redistribute your modified version, you must a) give me
credit for the work I put into it, and also you may not charge any money
for it. I would also appreciate if you told me about changes, but I leave
that to your discretion.
If you have any questions or comments, please feel free to send them to me.
Mark Kupferman
GEnie : M.S.K.
Fido : 101/470
BBS : Tao of Telecommunication (617-527-5677)